package org.moranyunxi.www;

import java.util.Arrays;

public class ArraysTest {
    public static void main(String[] args) {
        int[] a = {2, 45, 5, 54, 90, 6};
        System.out.println(Arrays.toString(a));

        // 排序后
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));

        String[] b = {"你谁啊", "你管我啊", "沧海桑田", "上古时期", "我喜欢你", "滚犊子"};
        System.out.println(Arrays.toString(b));

        Arrays.sort(b);
        System.out.println(Arrays.toString(b));
    }
}
